from pml import Errors

class PMSyntaxError(Errors.PMError.PMError):
    def __init__(self, information):
        super().__init__(information)

    def getObject(self):
        ret = super().getObject()
        ret.methods['type'] = Errors.PMError.Objects.object.PMTypeObject(Errors.PMError.Objects.PMStringObject.PMStringObject('SyntaxError').getObject())

        return ret

